﻿using Colorful.UEditor;
using Volo.Abp.Application.Services;

namespace Colorful.Furniture.BasicDataManagement
{
    /// <summary>
    /// 百度编辑器服务
    /// </summary>
    public class CommonUEditorService : ApplicationService
    {
        private readonly UEditorService _uEditorService;

        public CommonUEditorService(UEditorService uEditorService)
        {
            _uEditorService = uEditorService;
        }

        ///// <summary>
        /////  编辑器
        ///// </summary>
        ///// <returns></returns>
        ////如果是API，可以按MVC的方式特别指定一下API的URI
        //[HttpGet, HttpPost]
        //public ContentResult Index()
        //{
        //    var response = _uEditorService.UploadAndGetResponse(HttpContext);

        //    return Content(response.Result, response.ContentType);
        //}

    }
}
